#include <iostream>
using namespace std;

int main(){
    int begin = 0, end = 0;
    cout << "请输入初始值：";
    cin >> begin;
    cout << "请输入结束值：";
    cin >> end;
    if (begin >= end){
        while (begin >= end){
            cout << begin << "\t";
            begin--;
        }
    } else{
        while (begin <= end){
            cout << begin << "\t";
            begin++;
        }
    }

    return 0;
}
